package tech.aistar.mapper.guidemapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import tech.aistar.entity.person_center.Orders;

import java.util.List;


public interface GuideTimemapper {
    //将订单的消息
    @Update("update orders set order_status =-1 where   id=${value}")
    void updateOrder(Integer id);

    @Update("update orders set order_status =2 where   id=${value}")
    void delOrder(Integer id);

    //更新点赞信息
    @Update("update GuidePraise set num =${num} where guide_id=${id}")
    void addPraise(@Param("num") Integer num,@Param("id") Integer id);

    //找出明天要出行的
    @Select("select * from orders where apply_time='${value}' and order_status=1")
    List<Orders> getGo(String date);

}
